package com.gamesite.gamesite.core.vo;

import com.gamesite.gamesite.core.pojo.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoomPlayerVo extends User {
    private String status;  //host ready notReady

    public RoomPlayerVo(User user) {
        this.setId(user.getId());
        this.setUsername(user.getUsername());
        this.setPassword(user.getPassword());
        this.setRating(user.getRating());
        this.setPlayCount(user.getPlayCount());
        this.setWinCount(user.getWinCount());
        this.setWinRate(user.getWinRate());
        this.status = "notReady"; // Default status
    }
}
